/** 系统配置 */
export const system = {
  /** 名称 */
  name: 'SMR 管 理 后 台 模 板',
  /** 标题 */
  title: 'SMR管理后台模板'
}

/** 路由配置 */
export const routes = [
  {
    name: 'Login',
    path: '/',
    component: () => import('@/views/LoginView.vue')
  },
  {
    name: 'Page',
    path: '/page',
    component: () => import('@/views/PageView.vue'),
    redirect: '/home',
    children: [
      {
        name: 'HomePage',
        path: '/home',
        component: () => import('@/components/main/HomePage.vue'),
        meta: {
          title: '首页',
          icon: 'House',
          disabled: false,
          closable: false,
          keep: true
        }
      },
      {
        name: 'TestAPage',
        path: '/testa',
        component: () => import('@/components/main/TestAPage.vue'),
        meta: {
          title: '测试1',
          icon: 'House',
          disabled: false,
          closable: true,
          keep: true
        }
      },
      {
        name: 'TestBPage',
        path: '/testb',
        meta: {
          title: '测试2',
          icon: 'House'
        },
        children: [
          {
            name: 'TestCPage',
            path: '/testc',
            component: () => import('@/components/main/TestCPage.vue'),
            meta: {
              title: '测试3',
              icon: 'House',
              disabled: false,
              closable: true,
              keep: false
            }
          }
        ]
      },
      {
        name: 'TestDPage',
        path: '/testd',
        meta: {
          title: '测试4',
          icon: 'House'
        },
        children: [
          {
            name: 'TestEPage',
            path: '/teste',
            meta: {
              title: '测试5',
              icon: 'House'
            },
            children: [
              {
                name: 'TestFPage',
                path: '/testf',
                component: () => import('@/components/main/TestFPage.vue'),
                meta: {
                  title: '测试6',
                  icon: 'House',
                  disabled: false,
                  closable: true,
                  keep: false
                }
              }
            ]
          }
        ]
      }
    ]
  }
]
